package com.group01.community.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group01.community.entity.ZyVisitor;
import com.group01.community.mapper.ZyVisitorMapper;
import com.group01.community.service.ZyVisitorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 访客邀请  服务实现类
 * </p>
 *
 * @author guoyuan
 * @since 2025-05-01
 */
@Service
public class ZyVisitorServiceImpl extends ServiceImpl<ZyVisitorMapper, ZyVisitor> implements ZyVisitorService {

    @Autowired(required = false)
    private ZyVisitorMapper zyVisitorMapper;

    @Override
    public IPage<ZyVisitor> selectAllByCommunityName(Long current, Long size, ZyVisitor zyVisitor) {
        return zyVisitorMapper.selectAllByCommunityName(new Page<>(current,size),zyVisitor);
    }

    @Override
    public List<ZyVisitor> selectZyVisitor() {
        return zyVisitorMapper.selectZyVisitor();
    }


}
